﻿using RockBus.MonitoringService.Interfaces;
using RockBus.Monitoring.DataContracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace RockBus.Services.WebApi
{
    public class MonitoringServiceController : ApiController, IMonitoringService
    {
        public MonitoringServiceController(IMonitoringService monitoringService)
        {
            this.MonitoringService = monitoringService;
        }

        private IMonitoringService MonitoringService { get; set; }

        [HttpGet]
        [ActionName("GetCounters")]
        public PerformanceCountersResponse GetCounters()
        {
            return this.MonitoringService.GetCounters();
        }
    }
}
